import request from '@/config/axios'

// 查询列表
export const getList = (params: PageParam) => {
  return request.get({ url: '/projectRelease/formList', params })
}

// 审核
export const verifyPublish = (params) => {
  return request.get({ url: '/projectRelease/verify', params })
}

//取消发布
export const cancelRelease = (params) => {
  return request.get({ url: '/projectRelease/cancelRelease', params })
}

//添加标签
export const addTag = (data) => {
  return request.post({ url: '/projectRelease/addtag', data })
}

// 查询标签
export const getTagById = (id: number) => {
  return request.get({ url: '/projectRelease/getTagsById?id=' + id })
}

// 查询标签列表
export const getTagList = (params: PageParam) => {
  return request.get({ url: '/projectTag/formList', params })
}

// 查询标签详情
export const getTagData = (id: number) => {
  return request.get({ url: '/projectTag/query?id=' + id })
}

// 新增标签
export const createTagData = (params) => {
  return request.get({ url: '/projectTag/add', params })
}

// 修改标签
export const updateTagData = (params) => {
  return request.get({ url: '/projectTag/update', params })
}

// 删除标签
export const deleteTagData = (id: number) => {
  return request.get({ url: '/projectTag/delete?id=' + id })
}
